/**
 *  Copyright (c)  2011-2020 Panguso, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Panguso, 
 *  Inc. ("Confidential Information"). You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into with Panguso.
 */


package cn.edu.thu.log.web.service.impl;

import cn.edu.thu.log.web.service.PropertiesReaderServices;
import globalparameter.PropertiesReader;
/**
 * 
 * @author Student
 *
 */
public final class PropertiesReaderServicesImpl implements PropertiesReaderServices {
	private static PropertiesReaderServices singleton = null;
	private PropertiesReader propertiesreader;

	private PropertiesReaderServicesImpl() {
		propertiesreader = new PropertiesReader();
	}
/**
 * 
 * @return
 */
	public static synchronized PropertiesReaderServices instance() {
		if (singleton == null) {
			singleton = new PropertiesReaderServicesImpl();
		}
		return singleton;
	}

	@Override
	public String getProperties(String key) {
		return propertiesreader.getProperties(key);
	}

}
